package main

import (
	"fmt"
	"runtime"
	"time"
)

func print() {
	for count := 0; count < 10; count++ {
		fmt.Println("this is first", count)
	}
}

func print2() {
	count := 20
	for count < 30 {
		fmt.Println("this is second", count)
		count++
	}
}

func main() {
	fmt.Print(runtime.NumCPU())
	go print()
	go print2()
	time.Sleep(time.Duration(2) * time.Second)
}
